From 1226e0a2e1d251d398d50792f22f880d43d2ba2c Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Mon, 27 Oct 2003 15:20:46 +0000 Subject: [PATCH] (reindent-then-newline-and-indent): Delete space *after* reindenting the first line. --- lisp/simple.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/simple.el b/lisp/simple.el index b0d5f7295f9..3d636de721a 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -303,14 +303,14 @@ In programming language modes, this is the same as TAB. In some text modes, where TAB inserts a tab, this indents to the column specified by the function `current-left-margin'." (interactive "*") - (delete-horizontal-space t) (let ((pos (point))) ;; Be careful to insert the newline before indenting the line. ;; Otherwise, the indentation might be wrong. (newline) (save-excursion (goto-char pos) - (indent-according-to-mode)) + (indent-according-to-mode) + (delete-horizontal-space t)) (indent-according-to-mode))) (defun quoted-insert (arg) -- 2.30.2